<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="root">
    <button @click="fn">点我</button>
    <br/>
    <input type="text" v-model="num">
    <p v-html="num"></p>
    <p v-text="num"></p>
</div>
</body>
<script type="module">
    import Vue from './vue.js';
    const data = {
        num :1
    }
    const vm = new Vue({
        el:'#root',
        data,
        methods:{
            fn(){
                console.log(111)
            }
        }
    });

</script>
</html>